package com.lcke.lemon;

import com.lcke.lemon.aop.MyInterceptor;
import com.lcke.lemon.aop.SolonLog;
import org.noear.solon.Solon;
import org.noear.solon.SolonBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SolonApp {

    Logger logger = LoggerFactory.getLogger(SolonApp.class);

    public static void main(String[] args) {

        //Solon.start(SolonApp.class, args);
        //Solon.start(SolonApp.class, args, solonApp -> {
        //    //AppInitEndEvent
        //});
        new SolonBuilder()
                .onAppInitEnd(e -> {
                    Solon.context().beanAroundAdd(SolonLog.class, new MyInterceptor());
                }).onAppPluginLoadEnd(e -> {
                }).start(SolonApp.class, args);


    }


}
